<HTML>
<TITLE>Show Screen Resolution</TITLE> 
<HEAD> 
<?php 
if(isset($_COOKIE["users_resolution"]))
$screen_res = $_COOKIE["users_resolution"];
else //means cookie is not found set it using Javascript 
{ 
?> 
<script language="javascript"> 
<!-- 
writeCookie(); 
function writeCookie() 
{ 
var today = new Date(); 
var the_date = new Date("December 31, 2023"); 
var the_cookie_date = the_date.toGMTString(); 
var the_cookie = "users_resolution="+ screen.availWidth +"x"+ screen.height;
var the_cookie = the_cookie + ";expires=" + the_cookie_date; 
document.cookie=the_cookie 

location = 'wallpaperama.php';
} 
//--> 
</script> 
<? 
} 
?> 
</HEAD> 
<BODY> 
<h1>Screen Resolution by Wallpaperama.com </h1><hr> 
<p>This script will show you what your screen resolution is set to using php and javascript.</p> 
<p style="color:#FF0000"><?php 
echo "Your Screen resolution is set at ". $screen_res; 
?> 
</p> 
<p>If you found this script helpful, we would appreciate a link to wallpaperama.com ? Why link to us. by linking to wallpaperama.com you will help others find this free script and others in our library. </p> 
<p>Thanks</p> 
<p>Wallpaperama Team</p> 
<p align="center">PHP Hosting Provided By <a href="http://www.webune.com">Webune.com</a> </p> 
</BODY> 
</HTML> 